package com.yunxi.app.service;


import com.github.pagehelper.PageInfo;
import com.yunxi.app.pojo.VersionVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * @version <1.0>
 * @Company <JINAN IAN SOFTWARE Co.,LTD.>
 * @Project <IAN Collaboration Suite>
 * @Author <zhangk>
 * @Date <2016/3/22>
 * @description 应用商店
 */
public interface VersionDubboService{
    VersionVO getById(Long id) throws InvocationTargetException, IllegalAccessException;

    void saveOrUpdate(VersionVO versionVO) throws InvocationTargetException, IllegalAccessException;

    void removeById(Long id);

    PageInfo<VersionVO> findPageByVO(VersionVO vo, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException;

    void removeByListVo(List<VersionVO> versionVOList) throws IllegalAccessException, InvocationTargetException, InstantiationException;

    List listByVo(VersionVO versionVO);

    /**
     * 获取最新版本
     * @param type
     * @param platform
     */
    VersionVO getNewVersion(Integer type, String platform) throws Exception;

}
